]> dgit.raspbian.org Git - gnome-shell.git/commit
barLevel: Cache custom style properties
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 26 Oct 2023 17:37:36 +0000 (19:37 +0200)
committerMarge Bot <marge-bot@gnome.org>
Tue, 21 Nov 2023 18:55:47 +0000 (18:55 +0000)
commita639fb0fc43aca1e429d45e4e24dd38e4ebc5d79
treee25b099f479ae073c7caecee23a2facf08f5810f
parent77a72cec1ee38321fe796a9f6d96f08cee577e7e
barLevel: Cache custom style properties

Custom properties are not cached by the theme node itself, so
looking them up repeatedly at every repaint is relatively
expensive.

Avoid this by caching the values ourselves at style changes.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2994>
js/ui/barLevel.js